//---------------------------------------------------------------------------

#ifndef TSpeedTimePositionH
#define TSpeedTimePositionH

#include <vector.h>
//---------------------------------------------------------------------------
class TSpeedTimePosition
{
public:
	unsigned short CutID;
	float Speed;
	float PreSpeed;              // This variable is for drawing picture of AVI file, it add on 2009-2-1.
   float Time;
	float Position;
	float PrePosition;
	__fastcall TSpeedTimePosition();
private:
};

class TVTS : private vector<TSpeedTimePosition>
{
public:
	int Pos;
	__property TSpeedTimePosition * Current = { read=GetCurrent };
	TSpeedTimePosition & __fastcall operator [] (const unsigned short Index);
	__property TSpeedTimePosition * Item[unsigned short Index] = { read=GetSpeedTimePosition };
	__property unsigned Quantity = { read=size, write=SetQuantity };
	__fastcall TVTS();
   void __fastcall Add(const unsigned short CutID,
                       const float Speed,
                       const float Time,
							  const float Position,
							  const float PreSpeed, // = -999,
							  const float PrePosition);// = -999);
	bool __fastcall MoveNext(void);
private:
	TSpeedTimePosition __fastcall GetVTS(const unsigned short Index);
	TSpeedTimePosition * __fastcall GetSpeedTimePosition(const unsigned short Index);
	TSpeedTimePosition * __fastcall GetCurrent(void);
	void __fastcall SetQuantity(unsigned NewQuantity);
};
#endif
